export const router:Array<Object> = [
    {
        path:'/',
        component: '../pages/index',
        routes:[
            {
                path:'/',
                exact: true,
                redirect: '/login',
            },
            {
                path:'/login',
                component:'../pages/login/login'
            },
            {
                path:'/test',
                title:'测试',
                component:'../pages/test'
            },
            {
                path:'/index',
                component:'../pages/home/index',
                title:'首页',
                wrappers:[
                    '../pages/wrappers/auth'
                ],
                routes:[
                    {
                        path:'/index/createActivity',
                        title:'活动列表',
                        component:'../pages/activity/makeActivity'
                    },
                    {
                        path:'/index/activityInfo',
                        title:'活动详情',
                        component:'../pages/activity/activityDataInfo'
                    },
                    {
                        path:'/index/create',
                        title:'创建活动',
                        component:'../pages/activity/createIndex'
                    }
                ]
            }
        ]
    },
    
]